home *** CD-ROM | disk | FTP | other *** search
/ The Mac 1996 October / The Mac (October 1996).dmg / Applications / ShadowBot 1.0b8 Folder / Plugins / axe next >
Encoding:
Text File  |  1996-05-08  |  1.6 KB  |  25 lines  |  [TEXT/ttxt]

  1. 'sample plugin: !axe nick weapon
  2. 'AXE Plugin © 1996 John Bafford, all rights reserved.
  3. NUMARGS 2
  4. 'specifies the number of space-delimited arguments.
  5. 'The last argument consists of whatever is left after the previous arguments are
  6. 'used, so it may have spaces.
  7. NEEDARGS 2
  8. 'Stops execution if you passed it less arguments than specified
  9. SAY I REALLY hate losers who flame the mac...
  10. 'says something in public on the channel.
  11. SAY It's time I did something about you...
  12. SAY Prepare to die!!!
  13. ME takes out a $ARG2 and prepares to kill $ARG1
  14. 'an action. $ARG1 is the first argument passed to the bot. $ARG2 is the second, etc. Max nine args.
  15. 'in this case, $ARG1 is being replaced with the users' nick because that is what you're passing to it
  16. ACCESS 40
  17. 'if you have an access level less than 40, the scipt ends execution here.
  18. 'BAN $USERMASK1
  19. 'bans the usermask that belongs to the nick specified as ARG1. If the nick isn't on the channel, noone is banned.
  20. KICK $ARG1 You have been terminated
  21. 'kicks someone with the nick specified in the first argument
  22. END
  23. END stops execution if it starts a line. This allows you to put comments at the end of the file without having to ensure they are less than 255 chars per line and slow down execution of the script.
  24. NOTE: This is only a sample of the commands. You can use any command the bot recognizes in the commands. When the script it executed, anything that they have access to do will be done. For example, if the user has access to op a user but not to shitlist them, and the script is to do both, the SHIT command will not be executed.
  25. Do NOT precede commands in the plugins file with the command character.